﻿using System.Collections.ObjectModel;
using System.Xml.Serialization;

namespace Renci.Data.Interop.OpenGIS.Wfs
{
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.opengis.net/wfs")]
    [System.Xml.Serialization.XmlRootAttribute("GetFeature", Namespace = "http://www.opengis.net/wfs", IsNullable = false)]
    public class GetFeatureType : BaseRequestType
    {
        /// <summary>
        /// Creates a default instance of <see cref="GetFeatureType"/>.
        /// </summary>
        public GetFeatureType()
        {
            this.ResultType = ResultTypeType.Results;
            this.OutputFormat = "text/xml; subtype=gml/3.1.1";

            this.Xmlns = new XmlSerializerNamespaces();
            this.Xmlns.Add("ows", "http://www.opengis.net/ows");
            this.Xmlns.Add("ogc", "http://www.opengis.net/ogc");
            this.Xmlns.Add("wfs", "http://www.opengis.net/wfs");
            this.Xmlns.Add("gml", "http://www.opengis.net/gml");
            this.Xmlns.Add("xlink", "http://www.w3.org/1999/xlink");
            this.Xmlns.Add("xsi", "http://www.w3.org/2001/XMLSchema-instance");
        }

        /// <summary>
        /// Gets or sets prefix association with namespaces that are used object serializer.
        /// </summary>
        [XmlNamespaceDeclarations]
        public XmlSerializerNamespaces Xmlns { get; set; }

        private Collection<QueryType> _queries = new Collection<QueryType>();
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("Query")]
        public Collection<QueryType> Queries
        {
            get
            {
                return this._queries;
            }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute("resultType")]
        [System.ComponentModel.DefaultValueAttribute(ResultTypeType.Results)]
        public ResultTypeType ResultType { get; set; }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute("outputFormat")]
        [System.ComponentModel.DefaultValueAttribute("text/xml; subtype=gml/3.1.1")]
        public string OutputFormat { get; set; }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute("maxFeatures", DataType = "positiveInteger")]
        public string MaxFeatures { get; set; }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute("traverseXlinkDepth")]
        public string TraverseXlinkDepth { get; set; }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute("traverseXlinkExpiry", DataType = "positiveInteger")]
        public string TraverseXlinkExpiry { get; set; }
    }
}
